package com.tsd.system.entity;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * 授予用户访问的资源
 *
 * @author david
 * @date 2021/07/05 15:04:02
 */
@ApiModel(description = "授予用户访问的资源")
public class SysUserResource implements Serializable {

    @ApiModelProperty(value = "自动增长的数字序号", example = "1")
    private Long id;

    @ApiModelProperty(value = "用户sid", example = "1")
    private String user_sid;

    @ApiModelProperty(value = "资源sid", example = "1")
    private String res_sid;

    @ApiModelProperty(value = "授权方式，1-直接授权，2-继承于角色，3-继承于分组", example = "1")
    private Integer auth_mode;

    @ApiModelProperty(value = "继承于角色sid，auth_mode为2时必填", example = "1")
    private String inherit_role_sid;

    @ApiModelProperty(value = "继承于组sid，auth_mode为3时必填", example = "1")
    private String inherit_group_sid;


    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUser_sid() {
        return this.user_sid;
    }

    public void setUser_sid(String user_sid) {
        this.user_sid = user_sid;
    }

    public String getRes_sid() {
        return this.res_sid;
    }

    public void setRes_sid(String res_sid) {
        this.res_sid = res_sid;
    }

    public Integer getAuth_mode() {
        return this.auth_mode;
    }

    public void setAuth_mode(Integer auth_mode) {
        this.auth_mode = auth_mode;
    }

    public String getInherit_role_sid() {
        return this.inherit_role_sid;
    }

    public void setInherit_role_sid(String inherit_role_sid) {
        this.inherit_role_sid = inherit_role_sid;
    }

    public String getInherit_group_sid() {
        return this.inherit_group_sid;
    }

    public void setInherit_group_sid(String inherit_group_sid) {
        this.inherit_group_sid = inherit_group_sid;
    }


}
